﻿<UserControl x:Class="AutomationMLMapper.Controls.ZoomSliderControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d">
    <Grid>      
        <StackPanel VerticalAlignment="Bottom" Height="35" HorizontalAlignment="Right" Orientation="Horizontal">
            <TextBlock Name="ZoomValueText" FontFamily="Tahoma" FontSize="12" MinWidth="10" TextAlignment="Center" 
                       VerticalAlignment="Center" />
            <Image Width="20" Height="20"  MouseLeftButtonDown="ImageZoomOut" Source="/AutomationMLMapper;component/Images/zoomOut.png" />

            <Slider Name="SliderToZoom" Minimum="0.5" Maximum="2.5" Width="250" 
                    LargeChange="0.2" SmallChange="0.1"
                    VerticalAlignment="Center"
                    Value="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}, Path=ZoomValue}">                   
            </Slider>
            <Image Width="20" Height="20"  MouseLeftButtonDown="ImageZoomIn" Source="/AutomationMLMapper;component/Images/zoomIn.png" />
            <Image Width="20" Height="20"  MouseLeftButtonDown="ImageZoomReset" Source="/AutomationMLMapper;component/Images/zoomReset.png" />
        </StackPanel>        
    </Grid>
</UserControl>
